<template>
	<div id="app">
		<router-view />
	</div>
</template>

<script>
	import { share } from "./common/api/common"
	export default {
		name: 'App',
		components: {},
		mounted() {
			if (this.checkIE()) {
				window.addEventListener('hashchange', () => {
					let currentPath = window.location.hash.slice(1)
					if (this.$route.path !== currentPath) {
						this.$router.push(currentPath)
					}
				}, false)
			}
		},
		methods:{
			checkIE(){
			    return '-ms-scroll-limit' in document.documentElement.style && '-ms-ime-align' in document.documentElement.style 
			}
		}
	}
</script>
<style lang="scss">
	#app {
		width: 100%;
		height: 100%;
	}
</style>
